// components/ranking-item/ranking-item.ts
Component({
    /**
     * 组件的属性列表
     */
    properties: {
      itemData: {
        type: Object,
        value: {}
      },
      key: {
        type: String,
        value: "newRanking"
      }
    },

    /**
     * 组件的初始数据
     */
    data: {

    },

    /**
     * 组件的方法列表
     */
    methods: {
      onRankingItemTap() {
        const key = this.properties.key
        wx.navigateTo({
          url: `/pages/detail-song/detail-song?type=ranking&key=${key}`,
        })
      }
    }
})
